//
//  LevelAdapter.h
//  CandyCrushClone
//
//  Created by Petar on 1/10/15.
//  Copyright (c) 2015 Nestorov Engineering. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <SFS2XAPIIOS/SmartFox2XClient.h>
#import "RWTSwap.h"
#import "RWTCookie.h"

@protocol LevelAdapterDelegate <NSObject>

- (void)setInitialCookies:(NSSet *)cookies;
- (RWTCookie *)cookieAtColumn:(NSInteger)column row:(NSInteger)row;

@end

@interface LevelAdapter : NSObject

@property (nonatomic,weak) id <LevelAdapterDelegate> delegate;

+ (instancetype)sharedAdapter;

-(void)initGameWithBoard:(SFSObject *)sfsObject;
-(void)handleMoveResponse:(SFSObject *)sfsObject;
-(void)handleForcedGameOverResponse:(SFSObject *)params;
-(NSArray *)getTopUpCookies;
-(void)resetParameters;
- (float)getAdditionalDelay:(SFSObject*)params;
- (void)handleGetStoreInfo:(SFSObject*)params;

@end
